/**
 * Created with IntelliJ IDEA.
 * Description: 100以内有多少个9
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-07-30  14:41
 */
public class Test2 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100 ; i++) {
            if(i % 10 == 9) {
                count++;
            }
            if(i / 10 == 9) {
                count++;
            }
        }
        System.out.println(count);
    }
}
